using System;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;

namespace Common.ExpressionAnalysis
{
    public class StringAnalysis
    {
        public static bool IsNumeric(string str)
        {
            Regex reg = new Regex(@"^[-]?\d+[.]?\d*$");
            return reg.IsMatch(str);
        }

        public static bool IsInt(string str)
        {
            Regex reg = new Regex("^\\d+$");
            return reg.IsMatch(str);
        }

    }
}
